import request from '@/common/utils/request'

export function getDepartmentList() {
  return request({
    url: 'go-department/list',
    method: 'post'
  })
}

export function addDepartment(data) {
  return request({
    url: 'go-department/add',
    method: 'post',
    data
  })
}

export function updateDepartment(data) {
  return request({
    url: 'go-department/update',
    method: 'post',
    data
  })
}

export function deleteDepartment(data) {
  return request({
    url: 'go-department/delete',
    method: 'post',
    data
  })
}
